import React from 'react';
import { withRouter } from 'react-router-dom'
class App extends React.Component {
  render() {
    // this.props.history.push
    console.log(this.props)
    return <div className=''>
      AAAAAAAAAAA
      <button onClick={() => {
        setTimeout(() => {
          this.props.history.push('/list', { q: 1, w: 3 })
        }, 2000);
      }}>去列表页</button>
    </div>;
  }
}
App = withRouter(App)
export default App